.class Lcom/estrongs/android/pop/app/OpenRecommActivity$g;
.super Landroid/widget/ArrayAdapter;
.source "OpenRecommActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/OpenRecommActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "g"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/widget/ArrayAdapter<",
        "Lcom/estrongs/android/pop/view/utils/c$a;",
        ">;"
    }
.end annotation


# instance fields
.field private a:[Lcom/estrongs/android/pop/view/utils/c$a;

.field final synthetic b:Lcom/estrongs/android/pop/app/OpenRecommActivity;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/app/OpenRecommActivity;Landroid/content/Context;I[Lcom/estrongs/android/pop/view/utils/c$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;->b:Lcom/estrongs/android/pop/app/OpenRecommActivity;

    .line 2
    invoke-direct {p0, p2, p3, p4}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;I[Ljava/lang/Object;)V

    .line 3
    iput-object p4, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;->a:[Lcom/estrongs/android/pop/view/utils/c$a;

    return-void
.end method


# virtual methods
.method public a()[Lcom/estrongs/android/pop/view/utils/c$a;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;->a:[Lcom/estrongs/android/pop/view/utils/c$a;

    return-object v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;->a:[Lcom/estrongs/android/pop/view/utils/c$a;

    aget-object p1, v0, p1

    const/4 v0, 0x0

    if-nez p2, :cond_1

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/pop/app/OpenRecommActivity$g;->b:Lcom/estrongs/android/pop/app/OpenRecommActivity;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    .line 3
    instance-of v1, p1, Lcom/estrongs/android/pop/view/utils/c$b;

    if-eqz v1, :cond_0

    const v1, 0x7f0c02bd

    .line 4
    invoke-virtual {p2, v1, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    goto :goto_0

    :cond_0
    const v1, 0x7f0c02bc

    .line 5
    invoke-virtual {p2, v1, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    :cond_1
    :goto_0
    const p3, 0x7f09089b

    .line 6
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    const v1, 0x7f09089d

    .line 7
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f090890

    .line 8
    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/CheckBox;

    .line 9
    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    if-eqz v3, :cond_3

    .line 10
    iget-object v3, v3, Lcom/estrongs/android/pop/view/utils/e$b;->c:Ljava/lang/String;

    const v4, 0x7f0806f1

    invoke-static {p3, v3, v4}, Les/qg;->a(Landroid/widget/ImageView;Ljava/lang/String;I)V

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->c()Z

    move-result p3

    if-eqz p3, :cond_2

    .line 12
    iget-object p3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    const-string v3, "cn"

    invoke-virtual {p3, v3}, Lcom/estrongs/android/pop/view/utils/e$b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 13
    :cond_2
    iget-object p3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->i:Lcom/estrongs/android/pop/view/utils/e$b;

    const-string v3, "en"

    invoke-virtual {p3, v3}, Lcom/estrongs/android/pop/view/utils/e$b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 14
    :goto_1
    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/utils/c$a;->a()Z

    move-result p3

    invoke-virtual {v2, p3}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_2

    .line 15
    :cond_3
    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->a:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p3, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 16
    iget-object p3, p1, Lcom/estrongs/android/pop/view/utils/c$a;->b:Ljava/lang/String;

    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 17
    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/utils/c$a;->a()Z

    move-result p3

    invoke-virtual {v2, p3}, Landroid/widget/CheckBox;->setChecked(Z)V

    :goto_2
    const p3, 0x7f090473

    .line 18
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    if-nez p3, :cond_4

    return-object p2

    .line 19
    :cond_4
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    .line 20
    iget-object v2, p1, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    const/4 v3, 0x4

    if-nez v2, :cond_5

    .line 21
    invoke-virtual {p3, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    :cond_5
    const-string v4, ".app.videoeditor.VideoEditProxyActivity"

    .line 22
    invoke-virtual {v2, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 23
    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->T0()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 24
    invoke-virtual {p3, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    .line 25
    :cond_6
    invoke-virtual {p3, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    .line 26
    :cond_7
    iget-object p1, p1, Lcom/estrongs/android/pop/view/utils/c$a;->d:Ljava/lang/String;

    const-string v2, ".app.PopVideoPlayer"

    invoke-virtual {p1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_9

    .line 27
    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->U0()Z

    move-result p1

    if-eqz p1, :cond_8

    .line 28
    invoke-virtual {p3, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    .line 29
    :cond_8
    invoke-virtual {p3, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    .line 30
    :cond_9
    invoke-virtual {p3, v3}, Landroid/view/View;->setVisibility(I)V

    :goto_3
    return-object p2
.end method
